package org.pp.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Login {

    @Schema(description = "key")
    @NotBlank(message = "key不为空")
    String key;

    @NotBlank(message = "验证码不为空")
    @Schema(description = "验证码图片base64")
    String code;

    @Schema(description = "密码")
    @NotBlank(message = "密码长度在6-18位")
    @Size(min = 6,max=18,message = "密码长度在6-18位")
    private String password;

    @Schema(description = "用户名")
    @NotBlank(message = "用户名不为空")
    private String userName;
}
